package com.goods.business.service;

import com.goods.common.error.SystemException;
import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.ProductCategoryVO;
import com.goods.common.vo.business.ProductVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;

/**
 * projectName: goods
 *
 * @author: ysc
 * time: 2022/12/2 15:14 周五
 * description:
 */
public interface ProductCategoryService {

    //查询物资列表
    PageVO<ProductCategoryTreeNodeVO> findcategoryTree(Integer pageNum, Integer pageSize);

    //添加物资
    void add(ProductCategory productCategory);

    //编辑物资
    ProductCategory edit(Long id) throws SystemException;

    //更新物资
    void update(Long id, ProductCategory productCategory) throws SystemException;

    //删除物资
    void delete(Long id) throws SystemException;

    //获取父分类列表信息
    List<ProductCategoryTreeNodeVO> getParentCategoryTree();
}
